package com.example.mapper;

import com.example.domain.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 用户映射器
 *
 * @author tong
 * @description 针对表【user(用户表)】的数据库操作Mapper
 * @createDate 2023-01-20 11:58:52
 * @Entity com.example.domain.User
 * @date 2023/01/20
 */
@Mapper
public interface UserMapper {

    List<User> selectAll();
    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

}
